Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch ELException in TypeConvertingMapELResolver to support map methods #690

Merged
merged 2 commits into from
Jun 17, 2021

Conversation

liamrharwood
Copy link
Contributor

Followup to #688

The previous PR caused an issue when calling methods on a map object (e.g. {{ map.items() }}). It would throw an ELException which would get added to the interpreter and not render anything.

This PR fixes the issue by catching ELExceptions when trying to convert - we shouldn't be using any incompatible property names anyway.

@liamrharwood liamrharwood requested a review from mattcoley June 17, 2021 19:32
@liamrharwood liamrharwood merged commit 7a17c69 into master Jun 17, 2021
@liamrharwood liamrharwood deleted the catch-type-convert branch June 17, 2021 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants